package com.yunsc.product.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品服务与承诺记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:48
 */
@Data
@TableName("yunsc_goods_service")
public class YunscGoodsServiceEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 商品服务ID
	 */
	@TableId
	private Integer serviceId;
	/**
	 * 服务名称
	 */
	private String name;
	/**
	 * 概述
	 */
	private String summary;
	/**
	 * 是否默认(新增商品时)
	 */
	private Integer isDefault;
	/**
	 * 状态(1显示 0隐藏)
	 */
	private Integer status;
	/**
	 * 排序方式(数字越小越靠前)
	 */
	private Integer sort;
	/**
	 * 是否删除(1已删除)
	 */
	private Integer isDelete;
	/**
	 * 商城ID
	 */
	private Integer storeId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer createTime;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer updateTime;

}
